package com.demo.mapper;

import com.demo.domain.CtUser;
import com.demo.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CtUserMapper {
    List<CtUser> selectOne(@Param("name")String name);
    Integer delUser(@Param("id")Integer id);
    List<CtUser> selectAll();
    Integer insertAll(CtUser ctUser);
    String yes(String shu);
    User allMsg(String shu);
    CtUser loginCode(String email);
    Integer insertUser(@Param("mobile") String mobile, @Param("password") String password);
    CtUser login(@Param("mobile") String mobile,@Param("password") String password);
    Integer update(@Param("mobile") String mobile ,@Param("password")String password);
}
